]> dgit.raspbian.org Git - gnome-shell.git/commit
dashSpacer: Don't trigger allocations from size negotiations
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 30 Apr 2019 11:31:51 +0000 (13:31 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 30 Apr 2019 20:59:28 +0000 (20:59 +0000)
commitd5ebd8c8168c89e6133c443bb1b503e3094f3250
tree786b923d2ae23d63d8115de94c24633fc24d009c
parented999ce92693b8f1ab4040444a3e6e380e7b4475
dashSpacer: Don't trigger allocations from size negotiations

If an actor's allocation is outdated, clutter_actor_get_allocation_box()
will queue a relayout. That's why it's advised to not use the function
unless the allocation is known to be valid (namely during paint), but
in particular not from within get_preferred_width/height vfuncs.

Using the :allocation property (which may be outdated) would be better,
but in this case we can simply delegate the request to the correct actor.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1065
js/ui/overviewControls.js